package com.longrise.android.byjk.plugins.dealsituation.cachecourse.downloadeddetail;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by callxkj on 2017/4/6.
 * 下载详情的expandableitem
 */

public class DownloadedDetailChildItem implements MultiItemEntity{

    private final boolean isDownloading; //是否是正在下载的item 是则为true 不是则为false
    private final int position; //当前item在正在下载或者已下载list中的位置

    public DownloadedDetailChildItem(boolean isDownloading, int position){
        this.isDownloading = isDownloading;
        this.position = position;
    }

    public boolean isDownloading() {
        return isDownloading;
    }

    public int getPosition() {
        return position;
    }

    @Override
    public int getItemType() {
        return DownloadedDetailRcvAdapter.TYPE_1;
    }
}
